/**
 * 
 * @param time 每个点的时间 秒
 * @param num 点个数
 * @param number 人数
 */
function sanburuxiaofa(time:number,num:number,number:number){
    return time*num+(number-1)*time;
}
export default class DemoController {
    name: string;
    age: number;
    construct(name: string, age: number) {
        this.name = name;
        this.age = age;
        console.log(1111)
    }
    
    static async hello(ctx: any) {
        console.log(ctx.query)
        //set应用 
        let set = new Set(['a', 'b', 'c', 'b', 'd']);
        set.add('g')
        console.log(set)
        //判断值是否是string
        let obj: string = "what you name"
        console.log(typeof (obj))
        console.log(typeof obj)
        console.log(obj.constructor == String)
        typeof (obj) == 'string'
        obj.constructor == String;
        console.log(this)
        ctx.body = sanburuxiaofa(5,3,100);
    }
}